package generic.types;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Generic property, that may also has some properties in a recursive manner.
 * @author Markus Jung
 */
public class Property implements Serializable{
	private String name;	
	private String value; 	
	
	private List<Property> properties = new ArrayList<Property>();
	
	public Property(){
		
	}
	
	public Property(String name, String value) {
		super();
		this.name = name;
		this.value = value;		
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	public String getValue() {
		return value;
	}
	
	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setProperties(List<Property> properties) {
		this.properties = properties;
	}

	public List<Property> getProperties() {
		return properties;
	}
}
